
<div class="view_1">
<table style="margin-top:4px; margin-bottom:1px; font-size: 14px" border="0">
	<tr height="38px">
		<td colspan="4"></td>
		<td align="center" style="font-size: 17px">#{[$result.id]}</td>
	</tr>
	<tr height="35px">
		<td width="16%" align="right"></td>
		<td colspan="2" id="edit_supplier" style="font-size: 15px">{[$result.supplier_x->fullname]}</td>
		<td width="12%"></td>
		<td width="24%" align="center" style="font-size: 17px">{[$smarty.now|date_format:'%Y-%m-%d']}</td>
	</tr>
	{[if $result.payment eq '2' or $result.payment eq '4']}
	<tr height="35px">
		<td align="right"></td>
		<td width="33%" style="font-size: 14px">{[$result.payment_x->name|truncate:36:"...":true]} {[$result.payment_x->code|bank]}</td>
		<td width="15%"></td>
		<td colspan="2" align="center" style="font-size: 14px">{[$result.payment_x->bank]}</td>
	</tr>
	{[else]}
	<tr height="35px">
		<td align="right"></td>
		<td width="33%" style="font-size: 14px">{[$result.payment_x->name]} {[$result.payment_x->mobile]}</td>
		<td width="15%"></td>
		<td colspan="2" align="center" style="font-size: 15px">{[$result.payment_x->content]}</td>
	</tr>
	{[/if]}
	<tr height="24px">
		<td align="right"></td>
		<td colspan="3"></td>
		<td align="center" style="font-size: 14px">{[$result.payment_t]}</td>
	</tr>
	<tr height="46px">
		<td align="right"></td>
		<td colspan="4" id="edit_name" style="font-size: 15px">{[$result.name]}</td>
	</tr>
	<tr height="86px">
		<td align="right"></td>
		<td style="font-size: 15px">{[$result.currency_t]} {[$result.amount|money]}</td>
		<td colspan="2" style="font-size: 15px">{[$result.content|nl2br]}</td>
		<td></td>
	</tr>
	<tr height="34px">
		<td colspan="4" style="padding-right:62px; font-size: 17.5px" align="right">{[if $result.currency eq 'CNY']}{[$result.amount|chinese]}{[/if]}</td>
		<td style="padding-left:48px;font-size: 17px">{[if $result.currency eq 'CNY']}{[$result.amount|money]}{[/if]}</td>
	</tr>
	<tr height="34px">
		<td colspan="4" style="padding-right:62px; font-size: 17.5px" align="right">{[if $result.currency eq 'HKD']}{[$result.amount|chinese]}{[/if]}</td>
		<td style="padding-left:48px; font-size: 17px">{[if $result.currency eq 'HKD']}{[$result.amount|money]}{[/if]}</td>
	</tr>
	<tr height="34px">
		<td colspan="4" style="padding-right:62px; font-size: 17.5px" align="right">{[if $result.currency eq 'USD']}{[$result.amount|chinese]}{[/if]}</td>
		<td style="padding-left:48px;font-size: 17px">{[if $result.currency eq 'USD']}{[$result.amount|money]}{[/if]}</td>
	</tr>
	<tr height="32px">
		<td colspan="4"></td>
		<td align="right" valign="bottom" style="font-size: 14px; padding-right:36px">{[$result.emp_t]}</td>
	</tr>
</table>
</div>

<link type="text/css" href="inc/print.css?r={[$smarty.now]}" rel="stylesheet">
